Spread ASP.NET 6.0 Product Documentation
RadioButtonListCellType Constructor(String[])
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > RadioButtonListCellType Class > RadioButtonListCellType Constructor : RadioButtonListCellType Constructor(String[])


items
Options to display in the cell specified in a string array

Glossary Item Box

Creates a new radio button list cell with the specified options.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal items() As String _
)
Visual Basic (Usage)Copy Code
Dim items() As String
 
Dim instance As New RadioButtonListCellType(items)
C# 
public RadioButtonListCellType( 
   string[] items
)

Parameters

items
Options to display in the cell specified in a string array

Example

This example creates a RadioButtonListCellType object, supplies it with items and values and assigns it to the first cell in the sheet. The first item in the list shows up in the cell and appears checked when entering edit mode.
C#Copy Code
    string[] rbstr;
    string[] rbval;
    rbstr = New String[] {"Ford", "Chevy", "Honda", "Chrysler"};
    rbval = New String[] {"Tough", "Rock", "Dependable", "New"};
    FarPoint.Web.Spread.RadioButtonListCellType rb = New FarPoint.Web.Spread.RadioButtonListCellType(rbstr);
    rb.Values = rbval;
    FpSpread1.ActiveSheetView.Cells[0, 0].CellType = rb;
    FpSpread1.ActiveSheetView.SetValue(0, 0, "Tough");
Visual BasicCopy Code
    Dim rbstr As String()
    Dim rbval As String()
    rbstr = New String() {"Ford", "Chevy", "Honda", "Chrysler"}
    rbval = New String() {"Tough", "Rock", "Dependable", "New"}
    Dim rb As New FarPoint.Web.Spread.RadioButtonListCellType(rbstr)
    rb.Values = rbval
    FpSpread1.ActiveSheetView.Cells(0, 0).CellType = rb
    FpSpread1.ActiveSheetView.SetValue(0, 0, "Tough")

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.